import React from 'react';
import { Button, Result } from 'antd';
import router from 'umi/router';
import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale';

export default () => (
  <Result
    status="404"
    title="404"
    subTitle={formatMessage({ id: 'httpCode.404' })}
    extra={
      <Button type="primary" onClick={() => router.push('/')}>
        <FormattedMessage id="httpCode.404" />
      </Button>
    }
  ></Result>
);
